<?php
$conn =mysqli_connect("localhost","root","root","memder3");
if (!$conn){
    echo "连接数据库服务器成功";
    exit;
}
//第二步设置字符集
$sql ="set names utf8";
mysqli_query($conn,$sql);